package contact;

public enum FormNoTypeEnum {
    BZ_ORDER("BZ", "yyyyMMdd", 5, 3, 18),
    DL_ORDER("DL", "yyyyMMdd", 5, 3, 18),
    CR_ORDER("CR", "yyyyMMdd", 5, 3, 18),
    PAY_ORDER("PY", "yyyyMMdd", 5, 3, 18);

    private String prefix;
    private String datePattern;
    private Integer serialLength;
    private Integer randomLength;
    private Integer totalLength;

    private FormNoTypeEnum(String prefix, String datePattern, Integer serialLength, Integer randomLength, Integer totalLength) {
        this.prefix = prefix;
        this.datePattern = datePattern;
        this.serialLength = serialLength;
        this.randomLength = randomLength;
        this.totalLength = totalLength;
    }

    public String getPrefix() {
        return this.prefix;
    }

    public void setPrefix(String prefix) {
        this.prefix = prefix;
    }

    public String getDatePattern() {
        return this.datePattern;
    }

    public void setDatePattern(String datePattern) {
        this.datePattern = datePattern;
    }

    public Integer getSerialLength() {
        return this.serialLength;
    }

    public void setSerialLength(Integer serialLength) {
        this.serialLength = serialLength;
    }

    public Integer getRandomLength() {
        return this.randomLength;
    }

    public void setRandomLength(Integer randomLength) {
        this.randomLength = randomLength;
    }

    public Integer getTotalLength() {
        return this.totalLength;
    }

    public void setTotalLength(Integer totalLength) {
        this.totalLength = totalLength;
    }
}
